import request from '@/utils/request'

//导入建筑物历史震害数据
export function uploadHsoBuildings(data) {
	return request({
		url: '/sdoBuildings/uploadHsoBuildings',
		method: 'post',
		data: data
	})
}
//建筑物震害信息修改
export function updateBuildings(data) {
	return request({
		url: '/sdoBuildings/updateBuildings',
		method: 'post',
		data: data
	})
}
//建筑物震害信息删除
export function deleteBuildingsById(query) {
	return request({
		url: '/sdoBuildings/deleteBuildingsById',
		method: 'get',
		params: query
	})
}
//建筑物震害信息查询（修改回显）
export function getBuildingsById(query) {
	return request({
		url: '/sdoBuildings/getBuildingsById',
		method: 'get',
		params: query
	})
}

//建筑物震害信息分页查询
export function queryBuildings(query) {
	return request({
		url: '/sdoBuildings/queryBuildings',
		method: 'get',
		params: query
	})
}

//建筑物震害信息，详情页面，矩阵、图表
export function getBuildingsByNumber(query) {
	return request({
		url: '/sdoBuildings/getBuildingsByNumber',
		method: 'get',
		params: query
	})
}

//建筑物震害信息,详情页面，基础信息
export function getBuildingsByIdApi(query) {
	return request({
		url: 'sdoBuildings/getBuildingsById',
		method: 'get',
		params: query,
		// 参数结构
		// params: {
		// 	buildingsId: ''
		// }
	})
}

//建筑物震害信息,表格修改
export function updateBuildingsForm(data) {
	return request({
		url: '/sdoBuildings/updateBuildingsForm',
		method: 'post',
		data: data
	})
}

//生成图片
export function generatePictures(data) {
	return request({
		url: '/sdoBuildings/generatePictures',
		method: 'post',
		data: data
	})
}
